import React from 'react'

import  queryString from 'querystring'        //es6    大前端规范--->  webpack (功能)


// const queryString=require('querystring')  //node  common.js 规范

export default class News extends React.Component {


    constructor() {
        super()


    }

    componentDidMount() {
        console.log(this.props.location.search)
      let str=this.props.location.search.substr(1)

      let obj=  queryString.parse(str,null,null)

      console.log(obj)

        

    

        
    }

    render() {

        return(
            <div>
                News
            </div>
        )
    }

}